const service = 'view'
const controller = 'product'

export const productController = {
  getProCatalogList:{
    service,
    controller,
    action: 'catalogs',
    method: 'POST',
    append:['list']
  },
  getProductList: {
    service,
    controller,
    action: 'list',
    method: 'POST'
  },
  getProductById: {
    service,
    controller,
    method: 'GET'
  },
  focusproduct: {
    service,
    controller,
    action: 'focus',
    method: 'POST'
  },
  getProductComboList: {
    service,
    controller,
    action: 'groups',
    method: 'POST',
    append:['list']
  },
  getProductComboById: {
    service,
    controller,
    action: 'groups',
    method: 'GET',
  },
  getproductNum: {
    service,
    controller,
    action: 'groups',
    method: 'POST',
    append:['products']
  },
  getAttentionList: {
    service,
    controller,
    action: 'focus',
    method: 'POST',
    append:['list']
  },
  delProduct: {
    service,
    controller,
    action: 'delProduct',
    method: 'DEL'
  },
  creatproduct:{
    service,
    controller,
    action: 'creatproduct',
    method: 'GET'
  },
  creatcombo:{
    service,
    controller,
    action: 'creatcombo',
    method: 'GET'
  },
  creatgroup:{
    service,
    controller,
    action: 'groups',
    method: 'POST',
    append:['add']
  },
  updategroup:{
    service,
    controller,
    action: 'groups',
    method: 'PUT',
  },
  delgroupProduct:{
    service,
    controller,
    action: 'groups',
    method: 'DELETE',
    append:['products','del']
  },
  addGroupProduct:{
    service,
    controller,
    action: 'groups',
    method: 'POST',
    append:['products','add']
  },
  delgroup: {
    service,
    controller,
    action: 'groups',
    method: 'DELETE'
  },
  delFocus:{
    service,
    controller,
    action: 'focus',
    method: 'DELETE'
  }
}
